package com.formiaomiao.demain.service;

import com.formiaomiao.demain.model.Result;
import com.formiaomiao.demain.model.UserBean;

import java.util.List;

public interface UserService {

    //注册
    Result<String> registerUser(UserBean userBean);

    //登录
    Result<UserBean> SignInUser(UserBean userBean);

    //修改头像
    Result<String> UpdateHead(UserBean userBean);

    //修改密码
    Result<String> UpdatePwd(UserBean userBean);

    //修改昵称
    Result<String> UpdateNickName(UserBean userBean);

    //发送验证码
    Result<Boolean> sendSMSMessage(Boolean b);

    //忘记密码
    Result<String> ForgetPwd(UserBean userBean);

    //通过id获取详情
    Result<UserBean> selectUser(UserBean userBean);

    //通过username获取用户信息
    Result<UserBean> usernameselect(UserBean userBean);

    //通过username获取用户信息
    Result<UserBean> Listusernameselect(Integer userid, List<UserBean> userBean);
}
